<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>永和大王门店管理系统</title>
</head>
<body style="padding:20px;">
<div style="padding: 5px;">
    <h1>永和大王门店管理系统-订单修改</h1>
</div>
<form action="doUpdate" method="post">
    <div>
        <input type="hidden" name="orderId" value="${order.orderId}"/>
        <table border="1" cellspacing="0">
            <tr>
                <td>所属门店：</td>
                <td>
                    <select name="doorId">
                        <option value="${order.doorId}">${doorName}</option>
                        <c:forEach items="${doorList}" var="d">
                            <c:if test="${order.doorId!=d.doorId }">
                                <option value="${d.doorId}">${d.doorName}</option>
                            </c:if>
                        </c:forEach>
                    </select>
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>订单号：</td>
                <td><input type="text" name="orderNo" value="${order.orderNo}"/></td>
                <td>订单类型：</td>
                <td><input type="text" name="orderType" value="${order.orderType}"/></td>
            </tr>
            <tr>
                <td>收银员：</td>
                <td><input type="text" name="cashier" value="${order.cashier}"/></td>
                <td>开单时间：</td>
                <td><input type="text" name="createTime" value="  <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss"
                    value="${order.createTime}" />   "/></td>
            </tr>
            <tr>
                <td>结账时间：</td>
                <td><input type="text" name="endTime" value="    <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss"
                value="${order.endTime}" />         "/></td>
                <td>支付方式：</td>
                <td><input type="text" name="paymentType" value=" ${order.paymentType}  "/></td>
            </tr>
            <tr>
                <td>支付金额：</td>
                <td><input type="text" name="price" value="${order.price}"/></td>
            </tr>
        </table>

        <br/>
        &nbsp;&nbsp;
        <input type="submit" name="ok" value="提交"/>
        <input type="button" onclick="history.go(-1);" name="back" value="返回"/>
    </div>
</form>
</body>
</html>
